
import request from './request.js';
let service = request.service;
export default {
  getJzArea() {
    return service({
      url: `/adscm/analysis/providerInfoDzjwd/getJzArea`,
      /**获取行政区域 */
      method: 'get'
    },'tj')
  },
  getJzJwd() {
    return service({
      url: `/adscm/analysis/providerInfoDzjwd/getJzJwd`,
      /**获取行政区域 */
      method: 'get'
    }, 'tj')
  },
  

   getAllPNumGroupByVillageByDate(data) {
     /** 通过时间获取相关地图数据 前三类*/
     return service({
       url: `/adscm/analysis/providerInfoDzjwd/getAllPNumGroupByVillageByDate`,
       method: 'get',
       params:data
     }, 'tj')
   },
   getProviderRound(data) {
     /** 获取后台浆员轮次信息 后15类*/
     return service({
       url: `/adscm/analysis/roundsBase/getProviderRound`,
       method: 'get',
       params:data
     }, 'tj')
   },
   getAllPNumGroupByVillageByGroup() {
    /** 获取相关地图数据 后15类数据接口*/
    return service({
      url: `/adscm/analysis/providerInfoDzjwd/getAllPNumGroupByVillage`,
      method: 'get'
     }, 'tj')
  },
   getJyXxPartTwo(data) {
    /** 通过type类型获取相关浆员轮次表格信息*/
    return service({
      url: `/adscm/analysis/roundsBase/getRegProviderRound`,
      method: 'get',
      params:data
    }, 'tj')
  },
  getRoundAjax() {
    /** 通过type类型获取相关浆员当前轮次表格信息*/
    return service({
      url: `/adscm/analysis/providerRound/getCurrentRound`,
      method: 'get'
    }, 'tj')
  },
  getVillageDataAjax(data) {
    /**根据村落名称获取该村落的详细统计信息*/
    return service({
      url: `/adscm/analysis/providerInfoDzjwd/getVillageDetailMsg`,
      method: 'get',
      params:data
    }, 'tj')
  },
  getJyXxPartOne(data) {
    /** 通过type类型获取相关浆员信息*/
    return service({
      url: `/adscm/analysis/providerInfoDzjwd/getGttByDateVillage`,
      method: 'get',
      params:data
    }, 'tj')
  },


//营运能力分析页面 api-------------------------------------------------------------------------------------------------------------------------------------  
  getCollMacRunningStatus(data) { 
    /** 获取生成采浆机运行（甘特图）数据*/
    return service({
      url: `/adscm/analysis/operationalManagement/getCollMacRunningStatus`,
      method: 'get',
      params:data
    }, 'tj')
  },
  providerHjCount(data) {
    /** 获取所有浆员（折线图）数据 */
    return service({
      url: `/adscm/analysis/operationalManagement/providerHjCount`,
      method: 'get',
      params:data
    }, 'tj')
  },
  newProviderDisplay(data) {
    /**获取新浆员（散点图）数据 */
    return service({
      url: `/adscm/analysis/operationalManagement/newProviderDisplay`,
      method: 'get',
      params:data
    }, 'tj')
  },
  getpulpingFrequency(data) { 
    /** 获取所有浆员（饼图）数据*/
    return service({
      url: `/adscm/analysis/operationalManagement/pulpingFrequency`,
      method: 'get',
      params:data
    }, 'tj')
  },
  getAllNurse(data) {
    /** 获取护士列表数据*/
    return service({
      url: `/adscm/analysis/operationalManagement/getAllNurse`,
      method: 'get',
      params:data
    }, 'tj')
  },
  getLinkNursePCount() {
    /** 获取护士列表数据*/
    return service({
      url: `/adscm/analysis/xyDevelopAnalysis/getLinkNursePCount`,
      method: 'get'
    }, 'tj')
  },
  getLinkNurseAllTypeProvider(data) {
    /** 根据护士列表获取其相关联的数据*/
    return service({
      url: `/adscm/analysis/xyDevelopAnalysis/getLinkNurseAllTypeProvider`,
      method: 'post',
      params:data
      }, 'tj')
  },
  getLinkNurseStatistics(data) {
    /** 查询护士链接的综合统计信息*/
    return service({
      url: `/adscm/analysis/xyDevelopAnalysis/getLinkNurseStatistics`,
      method: 'post',
      params:data
      }, 'tj')
  },
  getProviderRoundByCondition(data) {
    /** 根据条件，查询浆员的伦次信息*/
    return service({
      url: `/adscm/analysis/xyDevelopAnalysis/getProviderRoundByCondition`,
      method: 'post',
      params:data
      }, 'tj')
  },
  loadNurseLinkProviderStatistics() {
    /** 装载护士综合信息*/
    return service({
      url: `/adscm/analysis/xyDevelopAnalysis/loadNurseLinkProviderStatistics`,
      method: 'post',
      }, 'tj')
  },


//同期与当期浆量统计页-------------------------------------------------------------------------------------------------------------------------------------  
  selectCollStatisticsByYear(data) {
    /** 浆量详情表*/
    return service({
      url: `/adscm/analysis/xyDevelopAnalysis/selectCollStatisticsByYear`, //year=2018
      method: 'get',
      params:data
    }, 'tj')
  },
  getPulpWeight(data) {
    /**查询浆量同期比 */
    return service({
      url: `/adscm/analysis/xyDevelopAnalysis/getPulpWeight`,
      method: 'get',
      params:data
    }, 'tj')
  },
  getFrequencyCount(data) {
    /**查询返站浆员与返站浆员同期比 */
    return service({
      url: `/adscm/analysis/xyDevelopAnalysis/getFrequencyCount`,
      method: 'get',
      params:data
    }, 'tj')
  },
  getNewAndOutProviderCount(data) {
    /**查询新浆员同期比 */
    return service({
      url: `/adscm/analysis/xyDevelopAnalysis/getNewAndOutProviderCount`,
      method: 'get',
      params:data
    }, 'tj')
  },
}